package com.google.code.sysarch.v2;

import java.awt.*;
import javax.swing.*;


@SuppressWarnings("serial")
public class SantaFrame extends JFrame {
	
	//public static Image image = null;
	public final static int FrameWidth = 1024;
	public final static int FrameHeight = 768;
	
	public SantaPanel contentPane = null;
	protected static Dimension screenSize;

	/**
	 * This is the default constructor
	 */
	public SantaFrame() {
		super();
		initialize();
	}

	/**
	 * This method initializes the content panel
	 * 
	 */
	private void initialize() {
		
		// init frame
		this.setTitle("Das Santa Claus-Problem");
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        this.setSize(FrameWidth, FrameHeight);
        this.setLocation(screenSize.width/2 - FrameWidth/2, screenSize.height/2 - FrameHeight/2);

        //Create and set up the content pane.
        contentPane = new SantaPanel();
        this.setContentPane(contentPane);

        //Display the window.
        this.setVisible(true);
	}
	
}
